<!DOCTYPE HTML>
<html>
<head>
  <meta charset="utf-8">
  <meta name="renderer" content="webkit|ie-comp|ie-stand">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <!--[if lt IE 9]>
  <script type="text/javascript" src="__STATIC__/admin/js/html5.js"></script>
  <script type="text/javascript" src="__STATIC__/admin/js/respond.min.js"></script>
  <script type="text/javascript" src="__STATIC__/admin/js/PIE_IE678.js"></script>
  <![endif]-->
  <link href="__STATIC__/admin/assets/css/bootstrap.min.css" rel="stylesheet" />
  <link rel="stylesheet" href="__STATIC__/admin/css/style.css"/>
  <link href="__STATIC__/admin/assets/css/codemirror.css" rel="stylesheet">
  <link rel="stylesheet" href="__STATIC__/admin/assets/css/ace.min.css" />
  <link rel="stylesheet" href="__STATIC__/admin/Widget/zTree/css/zTreeStyle/zTreeStyle.css" type="text/css">
  <link rel="stylesheet" href="__STATIC__/admin/assets/css/font-awesome.min.css" />
  <!--[if IE 7]>
  <link rel="stylesheet" href="__STATIC__/admin/assets/css/font-awesome-ie7.min.css" />
  <![endif]-->
  <link href="__STATIC__/admin/Widget/icheck/icheck.css" rel="stylesheet" type="text/css" />
  <link href="__STATIC__/admin/Widget/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css" />

  <title>新增新闻</title>
</head>
<body>
<div class="clearfix" id="add_picture">

  <div class="page_right_style">
    <div class="type_title">添加新闻</div>
    <form action="{:url('save')}" method="post" enctype='multipart/form-data' class="form form-horizontal" id="form-article-add">
      <div class="clearfix cl">
        <label class="form-label col-2"><span class="c-red">*</span>新闻标题：</label>
        <div class="formControls col-10"><input type="text" class="input-text" value="" placeholder="输入新闻标题"  name="title"></div>
      </div>


      <div class="clearfix cl">
        <label class="form-label col-2">新闻分类：</label>
        <span class="cont_style">
          <select class="form-control" style="width: 150px;" name="catid">
            {foreach $newscat as $v}
            <option value="{$v.catid}">{$v.cate_name}</option>
            {/foreach}
          </select></span>
      </div>



      <div class="clearfix cl">
        <label class="form-label col-2">新闻描述：</label>
        <div class="formControls col-10">
          <textarea name="description" cols="" rows="" class="textarea"  placeholder="新闻描述..." datatype="*10-100" dragonfly="true" nullmsg="备注不能为空！" onKeyUp="textarealength(this,500)"></textarea>
          <p class="textarea-numberbar"><em class="textarea-length">0</em>/500</p>
        </div>
      </div>
      <!--  图片上传-->
      <div class="clearfix cl">
        <label class="form-label col-2">封面图：</label>
        <div class="formControls col-10">
          <input type="file" name="face">
        </div>
      </div>


      <div class="clearfix cl">
        <label class="form-label col-2">新闻详情：</label>
        <div class="formControls col-10">
          <script id="editor" type="text/plain" style="width:100%;height:400px;"></script>
        </div>
      </div>
      <div class="clearfix cl">
        <label class="form-label col-2"><span class="c-red">*</span>排序值：</label>
        <div class="formControls col-10"><input type="text" class="input-text" value="" placeholder="输入排序值，越大越前"  name="displayorder"></div>

      </div>
      <div class="clearfix cl">
        <div class="Button_operation">
          <button onClick="article_save_submit();" class="btn btn-primary radius" type="submit"><i class="icon-save "></i>保存并提交</button>
          <button onClick="layer_close();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
        </div>
      </div>
    </form>
  </div>
</div>
</div>
<script src="__STATIC__/admin/js/jquery-1.9.1.min.js"></script>
<script src="__STATIC__/admin/assets/js/bootstrap.min.js"></script>
<script src="__STATIC__/admin/assets/js/typeahead-bs2.min.js"></script>
<script src="__STATIC__/admin/assets/layer/layer.js" type="text/javascript" ></script>
<script src="__STATIC__/admin/assets/laydate/laydate.js" type="text/javascript"></script>
<script type="text/javascript" src="__STATIC__/admin/Widget/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="__STATIC__/admin/Widget/icheck/jquery.icheck.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/Widget/zTree/js/jquery.ztree.all-3.5.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/Widget/Validform/5.3.2/Validform.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/Widget/webuploader/0.1.5/webuploader.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/Widget/ueditor/1.4.3/ueditor.config.js"></script>
<script type="text/javascript" src="__STATIC__/admin/Widget/ueditor/1.4.3/ueditor.all.min.js"> </script>
<script type="text/javascript" src="__STATIC__/admin/Widget/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
<script src="__STATIC__/admin/js/lrtk.js" type="text/javascript" ></script>
<script type="text/javascript" src="__STATIC__/admin/js/H-ui.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/H-ui.admin.js"></script>
<script>
  $(function() {
    $("#add_picture").fix({
      float : 'left',
      skin : 'green',
      durationTime :false,
      stylewidth:'220',
      spacingw:0,
      spacingh:260,
    });
  });
  $( document).ready(function(){
//初始化宽度、高度

    $(".widget-box").height($(window).height());
    $(".page_right_style").height($(window).height());
    $(".page_right_style").width($(window).width()-220);
    //当文档窗口发生改变时 触发
    $(window).resize(function(){

      $(".widget-box").height($(window).height());
      $(".page_right_style").height($(window).height());
      $(".page_right_style").width($(window).width()-220);
    });
  });
  $(function(){
    var ue = UE.getEditor('editor');
  });

</script>

</body>
</html>